/*
 * Copyright 2007 Pleso.net
 * 
 * Licensed under the GNU Lesser General Public License, Version 2.1 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package net.pleso.framework.client.bl;

import net.pleso.framework.client.bl.providers.IRBProvider;
import net.pleso.framework.client.dal.IDataRow;

/**
 * Represents reference book selector. Selectors usually used in edit forms
 * where reference to another data table is required by some column. Selector
 * provides reference book instance through {@link IRBProvider} implementation
 * and allows to copy specified data from selected data row to the source row in
 * edit form by {@link IRowCopier} implementation.
 */
public interface ISelector extends IRBProvider, IRowCopier {

	/**
	 * Sets null value for wrapped by selector columns in specified row. This
	 * functionality can be used when user wants to clear selected data.
	 * 
	 * @param sourceRow
	 *            row, where null values must be set
	 */
	void setNull(IDataRow sourceRow);
}
